home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2000 June (IDG) / Macworld_June_2000.iso / Shareware World / Utilities / Databasing / Troi-File-Plug-in2.0 / Attribute.fp3 (.txt) < prev    next >
Encoding:
FileMaker Pro Database  |  2000-03-31  |  44.0 KB  |  234 lines  |  [FMP3/FMP3]

  1.  Copyright 1984-1998 FileMaker, Inc. 
  2. HBAM2016AUG95
  3. Pro 3.0
  4. HBAM3016AUG95@
  5. kZo{s
  6. o{kZg9^
  7. g9kZs
  8. o{kZg9c
  9. g9kZo{s
  10. o{kZg9g9
  11. g9kZkZo{s
  12. o{kZkZ
  13. kZkZo{o{s
  14. o{o{s
  15. o{kZc
  16. g9kZo{w
  17. kZg9^
  18. g9o{s
  19. o{g9c
  20. 1st Quarter
  21. 2nd Quarter
  22. 3rd Quarter
  23. 4th Quarter
  24. 3/31/00
  25. ARCHIVEBIT
  26. ISHIDDEN
  27. ISLOCKED
  28. _GERRORCODE
  29.     _GTHEFILE
  30. A    _gTheFileB
  31. isLockedB
  32. _gErrorCodeB
  33. archiveBitB
  34. isHiddenB
  35. Attributes
  36. AttributesB
  37. Get a FileSpec
  38. Get All Attributes
  39. Get Lock Status
  40.     Lock File
  41. Unlock File
  42. -------------
  43. Get Hidden Status
  44.     Hide File
  45. UnHide File
  46. -------------
  47. Get Archive Bit Status
  48. Set Archive Bit of File
  49. Reset Archive Bit of File
  50. -------------
  51.     open file
  52. Get a FileSpec
  53. This script will get a fileSpecBN
  54. |("TrFile-SetDefaultType"
  55. TrFile-SetDefaultType
  56. FileAttributeF4This file shows how get and set attribute of a file.G
  57.  2000 Troi Automatisering  `
  58. isLockedj
  59. Note: On Mac OS it may take some time (about 5 secs) before the change in a attribute is visible in the Finder. On Windows you need to refresh a Window before you see the change.k
  60. Select a Filem    Lock Filev
  61. First select a test file.~    _gTheFile
  62. _gErrorCode
  63. Unlock File
  64. archiveBit
  65. isHidden
  66. J    Hide File
  67. Unhide File
  68. Set Archive
  69. Reset Archive
  70. N$this bit is only present on Windows.
  71. OnBelow the attributes of the selected file are shown, you can change the attributes by clicking on the buttons.
  72. PlIf you cancel $$-1 is returned. See the user guide and OSErrrs database for more information on error codes.
  73. Close Demo File
  74. A2This script will get let the user select a folder.B
  75. |("TrFile-Get FileSpec Dialog"
  76.  "Please specify a file:")
  77. TrFile-Get FileSpec Dialog
  78. Please specify a file:|C;
  79.  2) <> "$$"
  80. Make it a full pathE]
  81. |("TrFile-FileSpec To FullPath"
  82. TrFile-FileSpec To FullPath
  83. A    open file
  84. ) = 2    
  85. Get Lock Status
  86. A,This script will return if a file is locked.
  87. |("TrFile-Get FileSpec Dialog"
  88.   "Please select a file to lock/unlock:")
  89. TrFile-Get FileSpec Dialog
  90. $Please select a file to lock/unlock:|D:
  91. 2) <> "$$"
  92. ) = 1    
  93. |("TrFile-FileSpec To FullPath"
  94. TrFile-FileSpec To FullPath
  95. A    Lock File
  96. A;This script will return will lock a file (make it ReadOnly)Bh
  97. |("TrFile-SetFileAttribute"
  98.  "-lock|"& 
  99. TrFile-SetFileAttribute
  100. -lock|
  101. Unlock File
  102. A;This script will unlock a file (remove Read only Attrubute)Bl
  103. |("TrFile-SetFileAttribute"
  104.  "-unlock|"& 
  105. TrFile-SetFileAttribute
  106. -unlock|
  107. Get Hidden Status
  108. A,This script will return if a file is locked.Bt
  109. |("TrFile-GetFileAttribute"
  110.  "-hiddenAttr|"& 
  111. TrFile-GetFileAttribute
  112. -hiddenAttr|
  113.  2) ="$$"
  114. |("TrFile-GetFileAttribute"
  115.  "-lockAttr|"& 
  116. TrFile-GetFileAttribute
  117. -lockAttr|
  118.  2) ="$$"
  119. "???"
  120. -------------
  121. A2This script will get let the user select a folder.B
  122. |("TrFile-Get FileSpec Dialog"
  123.  "Please specify a file:")
  124. TrFile-Get FileSpec Dialog
  125. Please specify a file:|C;
  126.  2) <> "$$"
  127. Make it a full pathE]
  128. |("TrFile-FileSpec To FullPath"
  129. TrFile-FileSpec To FullPath
  130. A    Hide File
  131. A;This script will return will lock a file (make it ReadOnly)Bh
  132. |("TrFile-SetFileAttribute"
  133.  "-hide|"& 
  134. TrFile-SetFileAttribute
  135. -hide|
  136. UnHide File
  137. A;This script will return will lock a file (make it ReadOnly)
  138. "???"
  139. -------------
  140. A2This script will get let the user select a folder.B
  141. |("TrFile-Get FileSpec Dialog"
  142.  "Please specify a file:")
  143. TrFile-Get FileSpec Dialog
  144. Please specify a file:|C;
  145.  2) <> "$$"
  146. Make it a full pathE]
  147. |("TrFile-FileSpec To FullPath"
  148. TrFile-FileSpec To FullPath
  149. Get Archive Bit Status
  150. A,This script will return if a file is locked.Bv
  151. |("TrFile-GetFileAttribute"
  152.  "-ArchiveAttr|"& 
  153. TrFile-GetFileAttribute
  154. -ArchiveAttr|
  155.  2) ="$$"
  156. |("TrFile-SetFileAttribute"
  157.  "-unhide|"& 
  158. TrFile-SetFileAttribute
  159. -unhide|
  160. Set Archive Bit of File
  161. A;This script will return will lock a file (make it ReadOnly)Bt
  162. |("TrFile-SetFileAttribute"
  163.  "-SetArchive|"& 
  164. TrFile-SetFileAttribute
  165. -SetArchive|
  166. Reset Archive Bit of File
  167. A;This script will return will lock a file (make it ReadOnly)Bx
  168. |("TrFile-SetFileAttribute"
  169.  "-ResetArchive|"& 
  170. TrFile-SetFileAttribute
  171. -ResetArchive|
  172. -------------
  173. A2This script will get let the user select a folder.B
  174. |("TrFile-Get FileSpec Dialog"
  175.  "Please specify a file:")
  176. TrFile-Get FileSpec Dialog
  177. Please specify a file:|
  178. "???"
  179. Get All Attributes
  180. A-This script will get all attributes of a file
  181.     Helvetica
  182. Geneva
  183. Times New Roman
  184.  2) <> "$$"
  185. Make it a full pathE]
  186. |("TrFile-FileSpec To FullPath"
  187. TrFile-FileSpec To FullPath
  188. k{k|w
  189. [=g\gYg\.T
  190. g\c[_]c\ozc\g\[]g\c[o{c[g\[\g\24
  191. OYBw*
  192. _ZkZ[ZkZ_ZkZOZkZ[ZkZ_Zw
  193. k]k]{
  194. g\g=5
  195. 5sF6g]F
  196. o|g]k}
  197.     k]k]s
  198. o|g]{
  199. k]k]w
  200. Nv_:5
  201. g=g<_;w
  202. o\o}5
  203. k=JW1
  204. o\g{1
  205. g=k]5
  206. NvkZ2
  207. s}g]k\
  208. g=g<w
  209. g}k=o
  210. o^k{k}
  211. g]k=k
  212. g}k]o}
  213. Pro 3.0 - 4.0F!
  214. Sunday
  215. Monday
  216. Tuesday
  217.     Wednesday
  218. Thursday
  219. Friday
  220. Saturday
  221. January
  222. February
  223. March
  224. April
  225. August
  226.     September
  227. October
  228. November
  229. December
  230. 1st Quarter
  231. 2nd Quarter
  232. 3rd Quarter
  233. 4th Quarter
  234.